<?php
class News_ctl extends Ctl{
    function __construct(){
    }
    function main(array $getVars) {
        $this::sessver();
        $type=!empty($_POST['type'])?$_POST['type']:false;
        if(!$type){
        	$result=xdb::getInstance()->getarray('select * from news where uid='.XXF_UID." and ntype like '普通信息'");
        	$this::show('news',compact('result'));
        }
    }
}